package com.工厂模式;

import com.策略模式.*;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2022/10/17 10:21
 * @description:
 * @version:
 */
public class FileStrategy {
    IFileStrategy getFileStrategy(FileTypeResolveEnum fileType){
        IFileStrategy fileStrategy ;
        if(fileType= FileTypeResolveEnum.File_A_RESOLVE){
            fileStrategy = new AFileResolve();
        }else if(fileType=FileTypeResolveEnum.File_A_RESOLV){
            fileStrategy = new BFileResolve();
        }else{
            fileStrategy = new DefaultFileResolve();
        }
        return fileStrategy;
    }
}
